package yrl;

import org.apache.log4j.Logger;

class Person {
	int age;
	public boolean compare(Person p) {
		if(this.age==p.age)
			return true;
		else {
				return false;
			}
	}
}
public class TestLog4 {
	 static boolean foo(char c) {

         System.out.print(c);

         return true;

       }
public static void main(String[] args) {
	Logger logger = Logger.getLogger(TestLog4.class);
	logger .info("13579");
	logger .debug("2468");
	logger .error("0");
	String a="Hello";   
	String b=a.substring(0,2);
	System.out.println(b);
    int a1=(int)12.0;
    char a2=12;
    System.out.println(a2);
	int x = 2,y = 10;
	 System.out.println(( x++)* 3);
	 if(x > y & x++ == y--)
		 System.out.println(y);
			double d=3.21f;
			System.out.println(5/2);  
			System.out.println(100%3);
			System.out.println(100%3.0);
	
}

}
